package com.arturjaneczko.view.impl.clipboard.mode.growth;

import java.awt.Dimension;
import java.awt.FlowLayout;
import java.util.ArrayList;

import javax.swing.JLabel;
import javax.swing.JPanel;

import com.arturjaneczko.model.core.IModel;
import com.arturjaneczko.services.impl.EIcon;
import com.arturjaneczko.view.core.AView;

public class PanelGrowth extends AView {

	private JPanel panel;

	public PanelGrowth(IModel model) {
		super(model);
		compositeList = new ArrayList<>();
	}

	@Override
	public void ui() {
		panel = new JPanel();
		panel.setLayout(new FlowLayout(FlowLayout.LEFT));

		JLabel label = new JLabel(EIcon.DEFAULT.getIcon());
		label.setPreferredSize(new Dimension(32, 32));
		panel.add(label);

		uiComposite(this, panel, null);
	}

	@Override
	public JPanel getGrowthPanel() {
		return panel;
	}

}
